package com.strongdigit.ioc.service;

import com.strongdigit.ioc.contract.InjectionDAO;
import com.strongdigit.ioc.contract.InjectionService2;

public  class  InjectionServiceImpl implements InjectionService2 {


    private InjectionDAO injectionDAO;

    public void setInjectionDAO(InjectionDAO injectionDAO) {
        this.injectionDAO = injectionDAO;
    }

    public InjectionServiceImpl(InjectionDAO injectionDAO) {
        this.injectionDAO = injectionDAO;
    }

    public InjectionServiceImpl(){}

    @Override
    public void save(String arg) {
        System.out.println("services接收参数:"+arg);
        arg=arg+":"+this.hashCode();
        injectionDAO.save(arg);

    }
}